package com.llly.mapper;

import com.llly.pojo.Easybuy_news;

import java.util.List;
import java.util.Map;

//
public interface NewsMapper {
    //查询
    public List<Easybuy_news> showAllNews();

    //增
    public int addNews(Easybuy_news en);

    //删
    public int delNews(int id);

    //改
    public int updateNew(Easybuy_news en);

    //根据指定id修改1
    public Easybuy_news findByid(int id);

    //在index页面显示1
    public List<Easybuy_news> IndexShowAll();

    //进入详情页面
    public Easybuy_news newsView(Integer id);
}
